package com.lst.api.service;

import com.lst.api.vo.request.LoanApplyRequest;
import com.lst.api.vo.response.LoanApplyResponse;
import com.lst.api.vo.response.LoanApplySelectDataResponse;

/**
 * @author: Frank
 * @date: 2019/12/30 14:16
 * @version: V1.0
 */
public interface ILoanApplyService {
    /**
     * 申请贷款
     *
     * @param userId
     * @param loanApplyRequest
     * @return
     */
    String apply(long userId, LoanApplyRequest loanApplyRequest);

    /**
     * 验证身份证号是否存在
     *
     * @param idCardNo
     * @return
     */
    boolean idCardNoIsExist(String idCardNo);

    /**
     * 根据身份证号获取申请单信息
     *
     * @param idCardNo
     * @return
     */
    LoanApplyResponse getInfoByIdCardNo(String idCardNo);

    /**
     * 获取申请表下啦数据
     *
     * @return
     */
    LoanApplySelectDataResponse listAllSelectData();
}
